#pragma once

#include <QTimer>
#include "Box.h"

// 小人
class Man: public QObject, public Box {
    Q_OBJECT

    private: QImage* mCurrentImage1;    // 当前图片1
    private: QImage* mCurrentImage2;    // 当前图片2
    private: QWidget* mGameBoard;       // 游戏区域
    private: QImage mImageLeft1;        // 左图片1
    private: QImage mImageLeft2;        // 左图片2
    private: QImage mImageRight1;       // 右图片1
    private: QImage mImageRight2;       // 右图片2
    private: QImage mImageUp1;          // 上图片1
    private: QImage mImageUp2;          // 上图片2
    private: QTimer mTimer;             // 定时器

    public: Man(BaseGameObject*, QPixmap*, QWidget*, Type, int, int);
    public: ~Man();
    private slots: void dancing();
    public: virtual BaseGameObject* move(int, MoveResult*);
};
